package com.dialogs;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

import com.senditcertified.mail.R;

public class LoadingDialog extends Dialog {
	private String message;

	public LoadingDialog(Context context) {
		super(context, R.style.DialogTheme);
		setContentView(R.layout.layout_progressbar);
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		if (message != null) {
			TextView tvMessage = (TextView) findViewById(R.id.tv_progressbar);
			tvMessage.setText(message);
		}
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
